<template>
  <div id="app">
    <!-- 导航组件 -->
    <nav-com></nav-com>
    <!-- 缓存的组件 -->
    <transition enter-active-class="animated bounceInLeft">
      <keep-alive>
        <router-view v-if="$route.meta.keepAlive" />
      </keep-alive>
    </transition>

    <!-- 不缓存的组件 -->
    <transition enter-active-class="animated bounceInLeft">
      <router-view v-if="!$route.meta.keepAlive" />
    </transition>

  </div>
</template>

  <script>
import navCom from './components/navCom.vue'
export default {
  components: { navCom }
}
  </script>
<style lang="less">
</style>
